package com.personal.dmc.page;

import android.app.Activity;
import android.widget.LinearLayout;

import com.personal.dmc.lib.CommonInfo;

/**
 * @author Ray
 * @date 2013. 10. 10.
 * @description 모든 Page의 부모 Page, Page에 필요한 기능들의 집합
 */
public abstract class BasePage {

	protected Activity activity;
	protected LinearLayout layout = null;
	
	protected void setCurrentPageIndex(int index)
	{
		CommonInfo.currentPageIndex = index;
	}
	
	public int getCurrentPageIndex()
	{
		return CommonInfo.currentPageIndex;
	}
	
	public abstract void onAppear();
	public abstract void onDisappear();
}
